package com.burns.strawberry.mapper;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2020/12/06 22:51
 */

import com.burns.strawberry.po.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName UserMapper
 * @Description TODO
 * @Author Burns
 * @DAte 2020/12/6 22:51
 * @Version 1.0
 **/
@Mapper
public interface UserMapper {
    //查询所有用户
    @Select("select * from tb_user")
    List<User> getAllUsers();

    //删除用户
    @Delete("delete from tb_user where id=#{id}")
    void delete(Integer id);

}
